package io.renren.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.sys.entity.BusinessEntity;
import io.renren.modules.sys.entity.OnshelvesEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-03-25 18:07:20
 */
@Mapper
public interface BusinessDao extends BaseMapper<BusinessEntity> {
    /**
     * 今日订单量
     * @param shopid 商铺id
     * @return
     */
    int queryTodayOrderNum(@Param("shopid")String shopid);

    /**
     * 昨日订单量
     * @param shopid 商铺id
     * @return
     */
    int queryYesterdayOrderNum(@Param("shopid")String shopid);

    /**
     * 总订单量
     * @param shopid 商铺id
     * @return
     */
    int queryTotalOrderNum(@Param("shopid")String shopid);

    /**
     * 今日交易额
     * @param shopid 商铺id
     * @return
     */
    BigDecimal queryTodayTradeVolume(@Param("shopid")String shopid);

    /**
     * 昨日交易额
     * @param shopid 商铺id
     * @return
     */
    BigDecimal queryYesterdayTradeVolume(@Param("shopid")String shopid);

    /**
     * 总交易额
     * @param shopid 商铺id
     * @return
     */
    BigDecimal queryTotalTradeVolume(@Param("shopid")String shopid);
	
}
